package cn.humaohua.study.yanmo_design_pattern.ch13.v4;

public class Main {
    public static void main(String[] args) {
        CookManager.runCookManager();
        for (int i = 0; i < 5; i++) {
            Waiter waiter = new Waiter();
            ChopCommand chopCommand = new ChopCommand(i);
            DuckCommand duckCommand = new DuckCommand(i);
            waiter.orderDish(chopCommand);
            waiter.orderDish(duckCommand);

            // 点菜完毕
            waiter.orderOver();
        }
    }
}
